package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.project;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.project.AddPro;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class ProInfo {
    private int proId;
    private int userId;
    private int proDevId;
    private String proName;
    private String proDesc;
    private float proBudget;
    private long applyEndDate;
    private int proAcceptStandardId;
    private int proStatusId;
    private String proPeriod;
    private int isNeedMaintain;
    private int proFieldId;
    private long proHopeEnd;
    private long proPublishedDate;
    private int hasDocument;
    private int isQuote;
    private int isPersonal;
    private int isPublished;
    private String prdUrl;

    public ProInfo(AddPro pro) {
        this.proName = pro.getProName();
        this.proDesc = pro.getProDesc();
        this.proBudget = pro.getProBudget();
        this.applyEndDate = pro.getApplyEndDate();
        this.proAcceptStandardId = pro.getProAcceptStandardId();
        this.proPeriod = pro.getProPeriod();
        this.isNeedMaintain = pro.getIsNeedMaintain();
        this.proFieldId = pro.getProFieldId();
        this.proHopeEnd = pro.getProHopeEnd();
        this.isQuote = pro.getIsQuote();
        this.isPersonal = pro.getIsPersonal();
    }
}
